import 'package:aidw_ui/route_get.dart';
import 'package:flutter/animation.dart';
import 'package:get/get.dart';

import 'state.dart';

class WelcomeLogic extends GetxController with GetSingleTickerProviderStateMixin {
  final WelcomeState state = WelcomeState();

  late AnimationController animationController;

  void goLogin(){
    Get.offAndToNamed(RouteGet.homePage);
  }

  @override
  void onInit() {
    super.onInit();

    animationController = AnimationController(
        duration: Duration(milliseconds: 1500), vsync: this);
    animationController.forward();
  }
}
